#!/usr/bin/env node

const fs=require('fs'),
      src=process.argv[2],
      dst=process.argv[3];

try{
  fs.writeFileSync(dst,fs.readFileSync(src,'utf8'));
  fs.chmodSync(dst,fs.statSync(src).mode);
 
}catch(e){
  console.error(e.message);
}


